﻿using UnityEngine;
using System.Collections;

public class DebugHandler
{
   private static DebugHandler instance;

   private DebugHandler()
   {

   }

   public static DebugHandler GetInstance()
   {
       if (instance == null)
       {
           instance = new DebugHandler();
       }
       return instance;
   }
    
    /// <summary>
    /// 控制台输出
    /// </summary>
    /// <param name="message"></param>
    public void DebugLog(string message)
    {
        Debug.Log(message);
    }

    /// <summary>
    /// 控制台报错
    /// </summary>
    /// <param name="message"></param>
    public void DebugError(string message)
    {
        Debug.LogError(message);
    }

    /// <summary>
    /// 控制台警告
    /// </summary>
    public void DebugWarning(string message)
    {
        Debug.LogWarning(message);
    }
}
